home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
TurboTCP 1.0.1
/
MiniTelnet.source
/
CMiniTelnetApp.h
< prev
next >
Wrap
Text File
|
1993-12-10
|
1KB
|
67 lines
/*
** CMiniTelnetApp.h
**
** MiniTelnet application
** Application subclass
**
** Copyright © 1993, FrostByte Design / Eric Scouten
**
*/
#pragma once
#include "CTCPApplication.h"
#include "MiniTelnet.const.h"
// MiniTelnet file parameters
#define kAppSignature 'dTCP'
#define kSettingsFileType 'dTSR'
// memory size information
#define kExtraMasters 4
#define kRainyDayFund 20480
#define kCriticalBalance 20480
#define kToolboxBalance 20480
/*______________________________________________________________________
**
** CMiniTelnetApp
**
** This application class handles originating Telnet sessions and application-wide menus.
**
*/
class CMiniTelnetApp : public CTCPApplication {
// initialization
public:
void IMiniTelnetApp (void);
virtual void SetUpFileParameters (void);
// creation of Telnet sessions (documents)
virtual void CreateDocument (void);
virtual void OpenDocument (SFReply *macSFReply);
virtual void OpenSettings (SFReply *macSFReply);
virtual void OpenSettingsFile (SFReply *macSFReply, TelnetSettingsRec *theSettings);
virtual void NewSession (TelnetSettingsRec *newSettings);
// menu/command handling
virtual void DoCommand (long theCommand);
virtual void SetUpMenus (void);
virtual void UpdateMenus (void);
virtual void Run (void);
};